package com.movitech.mobile.cz.base.purchase.mapper.ext;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.movitech.mobile.cz.base.purchase.entity.PContactPlan;
import com.movitech.mobile.cz.base.purchase.entity.ext.ExtPContactPlan;
import com.movitech.mobile.cz.base.purchase.entity.ext.PContactPlanGetRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 合约规划 Mapper 接口
 * </p>
 *
 * @author Blue.Xia
 * @since 2018-03-08
 */
@Component
@Mapper
public interface ExtPContactPlanMapper extends BaseMapper<ExtPContactPlan> {

    List<ExtPContactPlan> findContractPlanList(Map<String, Object> map);

    Integer findContractPlanListCount(Map<String, Object> map);

    ExtPContactPlan getPContractPlanById(@Param("contractPlanId") String contractPlanId);

    List<ExtPContactPlan> getPContractPlanByIds(PContactPlanGetRequest pContactPlanGetRequest);

    /**
     * 获取项目分期列表
     * @return
     */
	List<String> getProjectPhasesList();
	
    List<ExtPContactPlan> getPContractPlanByMaps(Map<String, Object> map);

    List<ExtPContactPlan> selectByDetailId(String id);
}
